CheckConstraint

$(WIKI keyeditem, KeyedItem.checkConstraints) will check all of the members marked with this attribute and use the check given.

struct CheckConstraint (
alias check_
string name_ = ""
) if (
is(typeof(unaryFun!check_))
) {}

Members

Aliases

check
alias check = unaryFun!check_
Undocumented in source.

Manifest constants

name
enum name;
Undocumented in source.

Parameters

check_

The function that returns a boolean

name_

Name used in the error message if the function returns false

Meta

Version

\>= 0.0.6 allows you to mark your class as well.